
     <div class="main_box">
    <div id="mainContent_2">
        <div class="common_toolbar">
        	<div class="common_sort_l"></div>
            <div class="common_search_title">
			<div class="common_search_title_l">
			点评达人榜 >> </div>
			<span class="common_search_sort">
                            <form id="sortform" action="<?php echo edp_href_link(PAGENAME_TOP_REVIEWER);?>" method="GET">
				<input type="hidden" id="sortby" name="sortby" value="<?php echoPageVar($pageVars, "sortby");?>" />
                                    按照&nbsp;
                                    <a href="" id="sortcontribution" >等级</a> |
                                    <a href="" id="sortreview_count">有效点评数</a> |
                                    <a href="" id="sortflower_count">鲜花数</a> |
                                    <a href="" id="sortadd_shop_count">添加店铺数</a>
                                    排序
                                    <!--
                                    <input type="button" name="升序" value=" " class="btn_arrow_up">
                                    <input type="button" name="降序" value=" " class="btn_arrow_down">
                                    -->
                            </form>
			</span>
		
			</div>
			<div class="common_sort_r"></div>
        </div>
        
        <div class="search_result">
			<div class="search_result_content">
				<div class="search_result_th">
					<div class="search_result_th_td clearborder">会员昵称</div>
					<div class="search_result_th_td">有效点评</div>
					<div class="search_result_th_td">添加店铺</div>
					<div class="search_result_th_td">发表商品</div>
					<div class="search_result_th_td">鲜花数</div>
					<div class="search_result_th_td">等级</div>
					<div class="search_result_th_td">加为好友</div>
				</div>
                <?php
                if($result) 
                {
                	foreach($result as $user) 
                	{ 
                ?>
				<div class="search_result_tr">
					<div class="search_result_td clearborder">
                                            <a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$user['id']);?>"><?php echo $user['nick'];?></a>
                                        </div>
					<div class="search_result_td"><?php echo $user['review_count'];?></div>
					<div class="search_result_td"><?php echo $user['add_shop_count'];?></div>
					<div class="search_result_td"><?php echo $user['add_product_count'];?></div>
                                        <div class="search_result_td"><?php echo $user['flower_count'];?></div>
                                        <div class="search_result_td"><img src="<?php echo STATIC_DOMAIN.'image/'.getUserRankClass($user['contribution']).'.gif';?>"/></div>
					<div class="search_result_td">
                                        <?php
                                        if( !edp_isset_session('userid')||edp_getsession('userid')!=$user['id'] ) {
                                        ?>
					<td><a name="<?php echo $user['id'].'_'.$user['nick'];?>" class="add_friend" href="###">加为好友</a></td>
                                        <?php
                                            } 
                                        ?>
                                        </div>
				</div>
                <?php 
                	}
                } 
                ?>
			</div>
       <div class="pagebox">
             	<form action="#" class="pageform">
                    <?php
                            echo $pageObj->getBar();
                    ?>
                </form>                 
         </div>
	   </div>
    </div>
	<div id="sidebar_right">
		<div class="main_right_top">
			<div class="main_right_top_1"></div>
                        <form method="GET" action="<?php echo edp_href_link(PAGENAME_USER_SEARCH_RESULT); ?>" id="user_search" name="user_search" >
				<input type="hidden" id="user_search_keyword_hidden" value="<?php echoPageVar($pageVars, 'keyword');?>" />
				<div class="main_right_top_3">
                                    <input type="text" name="q" id="user_search_keyword" value="" />
				</div>
				<div class="main_right_top_4">
                                    <input type="submit" value="查询" />
				</div>
			</form>
		</div>
		<div class="main_right_bottom">
			<div class="main_right_bottom_1">邀请朋友加入花开里，赚取贡献值 <a href="http://www.huakaili.com/help/?subpage=301">贡献值有什么用</a></div>
			<form action="<?php echo edp_href_link(PAGENAME_INVITE_FRIEND,'redir='.edp_href_link(PAGENAME_TOP_REVIEWER));?>" method="post" id="friend_invite_form">
				<input type="hidden" name="action" value="invite_friend"/>
				<div class="main_right_bottom_2">好友的E-mail地址：</div>
				<div class="main_right_bottom_3"><input type="text" id="friend_email" name="friend_email"/></div>
				<div class="main_right_bottom_2">请输入图中验证码:</div>
				<div class="main_right_bottom_4">		
					<input type="text" id="vcode" name="vcode" />
					<img id="vimg" src="<?php echo edp_href_link(PAGENAME_VCODE,'tiny=1'); ?>" />
					<a id="virefresh" href="#">看不清？</a>
				</div>
				<div class="main_right_bottom_5"><input type="submit" name="friend_invite_submit" value="邀请" /></div>
			</form>
		</div>
	</div>
	<div id="PopBox" style="display:none;cursor:default;" class="popup"></div>	
